package net.ys.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author: NMY
 * @Date: 2021/7/7
 * @Time: 13:16
 */
@RestController
@RequestMapping("/test")
public class TestController {

    /**
     * 钉钉 / yearning
     *
     * @param request
     * @return
     * @throws Exception
     */
    @RequestMapping("/test")
    public void test(HttpServletRequest request) throws IOException {
        String key = request.getParameter("key");
        System.out.println(key);
    }
}
